import numpy as np

np.random.seed(1)
X = np.random.randint(1, 10, size=30)
X=X.reshape(-1,3)
print(X)
